﻿using Xunit;
using WpfAdmin.Everything;
using WpfAdmin.Everything.Enums;

namespace WpfAdmin.Everything.Test {
    public class Init {
        [CollectionDefinition("EverythingInit", DisableParallelization = true)]
        public class EverythingInitCollection : ICollectionFixture<EverythingFixture> { }
    }

    public class EverythingFixture {
        public EverythingFixture() {
            var work = System.IO.Path.Combine(System.IO.Path.GetTempPath(), "Everything_Runtime");
            EverythingState.Init(workPath: work, admin: false, startMode: StartMode.Service);
            EverythingState.EnsureServiceReady();
        }
    }
}
